发起交易拦截申诉
通过该接口可发起交易拦截申诉
请求参数 | 类型 | 描述 |
---|---|---|
sub_mchid | string | 子商户号 |
json | object | 声明请求的JSON 数据结构 |
merchant_submit_id | string | 商户侧申诉单号 |
submit_data | string | 商户提交资料内容 |
record_fields | object[] | 资料项集合 |
item_id | string | 资料项ID |
field_name | string | 资料项英文名 |
name | string | 资料项中文名 |
type | number | 资料项类型1 | 2 | 3 | 4 | 5 | 6 枚举值之一 |
repeated_field_data | string | 补充资料项多值JSON 格式 |
field_data | object[] | 补充资料项 |
longitude | string | 经度值 |
latitude | string | 纬度值 |
province | string | 省份 |
city | string | 城市 |
area | string | 区域 |
street | string | 街道 |
address | string | 详细地址 |
name | string | 地址名 |
wechat_order_id | string | 微信支付订单号 |
merchant_order_id | string | 商户订单号 |
trade_time | string | 交易时间+08:00东八区时间 |
trade_money_amount | string | 交易金额 |
trade_goods | string | 调单商品 |
logistic_flag | number | 是否物流0 | 1 枚举值之一 |
evidence_img_list | string[] | 凭证图片信息 |
tips | string | 资料项填写提示 |
placeholder | string | 输入框占位文案 |
tooltip | string | 叹号悬浮提示语 |
required | number | 是否必须提交0 | 1 枚举值之一 |
need_encrypt | boolean | 提交内容需要加密 |
string_check_rule | object | 字符串校验规则 |
min_string_length | number | 字符串最小长度 |
max_string_length | number | 字符串最大长度 |
validator | string | 校验规则number | phone | idcard | url | email 枚举值之一 |
enum_check_rule | object | 枚举校验规则 |
min_list_length | number | 最小列表长度 |
max_list_length | number | 最大列表长度 |
enum_values | string[] | 展示给商户看的枚举可选的字段列表 |
file_check_rule | object | 文件校验规则 |
min_list_length | number | 最小列表长度 |
max_list_length | number | 最大列表长度 |
enum_file_exts | string[] | 限制提交的文件后缀png | jpg | jpeg | mp4 | avi | mov | wmv | pdf | doc | docx | csv | xlsx 枚举值之一 |
max_file_size | number | 限制文件提交大小,单位M |
time_interval_check_rule | object | 时间区间校验规则 |
min_list_length | number | 最小列表长度 |
max_list_length | number | 最大列表长度 |
order_interval_check_rule | object | 订单类型校验规则 |
min_list_length | number | 最小列表长度 |
max_list_length | number | 最大列表长度 |
enum_file_exts | string[] | 限制提交的文件后缀png | jpg | jpeg | mp4 | avi | mov | wmv | pdf | doc | docx | csv | xlsx 枚举值之一 |
max_file_size | number | 限制文件提交大小,单位M |
relations | object[] | 资料项关联规则集合 (不同资料项ID取交集且,相同资料项ID不同资料项值取并集或) |
source_key | number | 关联的资料项ID |
source_value | string | 关联的资料项值 |
php
$instance->v3->transactionBlock->transactionBlockSubmissions->subMchid->_sub_mchid_->postAsync([
'sub_mchid' => '123000110',
'json' => [
'merchant_submit_id' => 'ABC123456789',
'submit_data' => \json_encode([
'record_fields' => [[
'item_id' => '',
'field_name' => '',
'name' => '',
'type' => 0,
'repeated_field_data' => \json_encode([[
'longitude' => '',
'latitude' => '',
'province' => '',
'city' => '',
'area' => '',
'street' => '',
'address' => '',
'name' => '',
'wechat_order_id' => '',
'merchant_order_id' => '',
'trade_time' => '',
'trade_money_amount' => '',
'trade_goods' => '',
'logistic_flag' => 0,
'evidence_img_list' => ['凭证图片1'],
],]),
'tips' => '',
'placeholder' => '',
'tooltip' => '',
'required' => 0,
'need_encrypt' => true,
'string_check_rule' => [
'min_string_length' => 0,
'max_string_length' => 0,
'validator' => 'number',
],
'enum_check_rule' => [
'min_list_length' => 0,
'max_list_length' => 0,
'enum_values' => ['string'],
],
'file_check_rule' => [
'min_list_length' => 0,
'max_list_length' => 0,
'enum_file_exts' => ['png'],
'max_file_size' => 0,
],
'time_interval_check_rule' => [
'min_list_length' => 2,
'max_list_length' => 2,
],
'order_interval_check_rule' => [
'min_list_length' => 0,
'max_list_length' => 0,
'enum_file_exts' => ['png'],
'max_file_size' => 0,
],
'relations' => [[
'source_key' => 0,
'source_value' => '',
],],
],],
]),
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/transaction-block/transaction-block-submissions/sub-mchid/{sub_mchid}')->postAsync([
'sub_mchid' => '123000110',
'json' => [
'merchant_submit_id' => 'ABC123456789',
'submit_data' => \json_encode([
'record_fields' => [[
'item_id' => '',
'field_name' => '',
'name' => '',
'type' => 0,
'repeated_field_data' => \json_encode([[
'longitude' => '',
'latitude' => '',
'province' => '',
'city' => '',
'area' => '',
'street' => '',
'address' => '',
'name' => '',
'wechat_order_id' => '',
'merchant_order_id' => '',
'trade_time' => '',
'trade_money_amount' => '',
'trade_goods' => '',
'logistic_flag' => 0,
'evidence_img_list' => ['凭证图片1'],
],]),
'tips' => '',
'placeholder' => '',
'tooltip' => '',
'required' => 0,
'need_encrypt' => true,
'string_check_rule' => [
'min_string_length' => 0,
'max_string_length' => 0,
'validator' => 'number',
],
'enum_check_rule' => [
'min_list_length' => 0,
'max_list_length' => 0,
'enum_values' => ['string'],
],
'file_check_rule' => [
'min_list_length' => 0,
'max_list_length' => 0,
'enum_file_exts' => ['png'],
'max_file_size' => 0,
],
'time_interval_check_rule' => [
'min_list_length' => 2,
'max_list_length' => 2,
],
'order_interval_check_rule' => [
'min_list_length' => 0,
'max_list_length' => 0,
'enum_file_exts' => ['png'],
'max_file_size' => 0,
],
'relations' => [[
'source_key' => 0,
'source_value' => '',
],],
],],
]),
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/transaction-block/transaction-block-submissions/sub-mchid/{sub_mchid}']->postAsync([
'sub_mchid' => '123000110',
'json' => [
'merchant_submit_id' => 'ABC123456789',
'submit_data' => \json_encode([
'record_fields' => [[
'item_id' => '',
'field_name' => '',
'name' => '',
'type' => 0,
'repeated_field_data' => \json_encode([[
'longitude' => '',
'latitude' => '',
'province' => '',
'city' => '',
'area' => '',
'street' => '',
'address' => '',
'name' => '',
'wechat_order_id' => '',
'merchant_order_id' => '',
'trade_time' => '',
'trade_money_amount' => '',
'trade_goods' => '',
'logistic_flag' => 0,
'evidence_img_list' => ['凭证图片1'],
],]),
'tips' => '',
'placeholder' => '',
'tooltip' => '',
'required' => 0,
'need_encrypt' => true,
'string_check_rule' => [
'min_string_length' => 0,
'max_string_length' => 0,
'validator' => 'number',
],
'enum_check_rule' => [
'min_list_length' => 0,
'max_list_length' => 0,
'enum_values' => ['string'],
],
'file_check_rule' => [
'min_list_length' => 0,
'max_list_length' => 0,
'enum_file_exts' => ['png'],
'max_file_size' => 0,
],
'time_interval_check_rule' => [
'min_list_length' => 2,
'max_list_length' => 2,
],
'order_interval_check_rule' => [
'min_list_length' => 0,
'max_list_length' => 0,
'enum_file_exts' => ['png'],
'max_file_size' => 0,
],
'relations' => [[
'source_key' => 0,
'source_value' => '',
],],
],],
]),
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->transactionBlock->transactionBlockSubmissions->subMchid->_sub_mchid_->post([
'sub_mchid' => '123000110',
'json' => [
'merchant_submit_id' => 'ABC123456789',
'submit_data' => \json_encode([
'record_fields' => [[
'item_id' => '',
'field_name' => '',
'name' => '',
'type' => 0,
'repeated_field_data' => \json_encode([[
'longitude' => '',
'latitude' => '',
'province' => '',
'city' => '',
'area' => '',
'street' => '',
'address' => '',
'name' => '',
'wechat_order_id' => '',
'merchant_order_id' => '',
'trade_time' => '',
'trade_money_amount' => '',
'trade_goods' => '',
'logistic_flag' => 0,
'evidence_img_list' => ['凭证图片1'],
],]),
'tips' => '',
'placeholder' => '',
'tooltip' => '',
'required' => 0,
'need_encrypt' => true,
'string_check_rule' => [
'min_string_length' => 0,
'max_string_length' => 0,
'validator' => 'number',
],
'enum_check_rule' => [
'min_list_length' => 0,
'max_list_length' => 0,
'enum_values' => ['string'],
],
'file_check_rule' => [
'min_list_length' => 0,
'max_list_length' => 0,
'enum_file_exts' => ['png'],
'max_file_size' => 0,
],
'time_interval_check_rule' => [
'min_list_length' => 2,
'max_list_length' => 2,
],
'order_interval_check_rule' => [
'min_list_length' => 0,
'max_list_length' => 0,
'enum_file_exts' => ['png'],
'max_file_size' => 0,
],
'relations' => [[
'source_key' => 0,
'source_value' => '',
],],
],],
]),
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/transaction-block/transaction-block-submissions/sub-mchid/{sub_mchid}')->post([
'sub_mchid' => '123000110',
'json' => [
'merchant_submit_id' => 'ABC123456789',
'submit_data' => \json_encode([
'record_fields' => [[
'item_id' => '',
'field_name' => '',
'name' => '',
'type' => 0,
'repeated_field_data' => \json_encode([[
'longitude' => '',
'latitude' => '',
'province' => '',
'city' => '',
'area' => '',
'street' => '',
'address' => '',
'name' => '',
'wechat_order_id' => '',
'merchant_order_id' => '',
'trade_time' => '',
'trade_money_amount' => '',
'trade_goods' => '',
'logistic_flag' => 0,
'evidence_img_list' => ['凭证图片1'],
],]),
'tips' => '',
'placeholder' => '',
'tooltip' => '',
'required' => 0,
'need_encrypt' => true,
'string_check_rule' => [
'min_string_length' => 0,
'max_string_length' => 0,
'validator' => 'number',
],
'enum_check_rule' => [
'min_list_length' => 0,
'max_list_length' => 0,
'enum_values' => ['string'],
],
'file_check_rule' => [
'min_list_length' => 0,
'max_list_length' => 0,
'enum_file_exts' => ['png'],
'max_file_size' => 0,
],
'time_interval_check_rule' => [
'min_list_length' => 2,
'max_list_length' => 2,
],
'order_interval_check_rule' => [
'min_list_length' => 0,
'max_list_length' => 0,
'enum_file_exts' => ['png'],
'max_file_size' => 0,
],
'relations' => [[
'source_key' => 0,
'source_value' => '',
],],
],],
]),
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/transaction-block/transaction-block-submissions/sub-mchid/{sub_mchid}']->post([
'sub_mchid' => '123000110',
'json' => [
'merchant_submit_id' => 'ABC123456789',
'submit_data' => \json_encode([
'record_fields' => [[
'item_id' => '',
'field_name' => '',
'name' => '',
'type' => 0,
'repeated_field_data' => \json_encode([[
'longitude' => '',
'latitude' => '',
'province' => '',
'city' => '',
'area' => '',
'street' => '',
'address' => '',
'name' => '',
'wechat_order_id' => '',
'merchant_order_id' => '',
'trade_time' => '',
'trade_money_amount' => '',
'trade_goods' => '',
'logistic_flag' => 0,
'evidence_img_list' => ['凭证图片1'],
],]),
'tips' => '',
'placeholder' => '',
'tooltip' => '',
'required' => 0,
'need_encrypt' => true,
'string_check_rule' => [
'min_string_length' => 0,
'max_string_length' => 0,
'validator' => 'number',
],
'enum_check_rule' => [
'min_list_length' => 0,
'max_list_length' => 0,
'enum_values' => ['string'],
],
'file_check_rule' => [
'min_list_length' => 0,
'max_list_length' => 0,
'enum_file_exts' => ['png'],
'max_file_size' => 0,
],
'time_interval_check_rule' => [
'min_list_length' => 2,
'max_list_length' => 2,
],
'order_interval_check_rule' => [
'min_list_length' => 0,
'max_list_length' => 0,
'enum_file_exts' => ['png'],
'max_file_size' => 0,
],
'relations' => [[
'source_key' => 0,
'source_value' => '',
],],
],],
]),
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
block_submission_id | string | 交易拦截申诉ID |
submit_time | string | 提交时间 |
review_result | string | 审核结果EMPTY | PASS | REJECT 枚举值之一 |
review_time | string | 审核时间 |
review_reject_reason | string | 审核驳回原因 |
参阅 官方文档